<?php
//error_reporting(0);

include "otamu_config.php";

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

include ("include/jpgraph-2.1.4/src/jpgraph.php");
include ("include/jpgraph-2.1.4/src/jpgraph_bar.php");
include ("include/jpgraph-2.1.4/src/jpgraph_pie.php");
include ("include/jpgraph-2.1.4/src/jpgraph_pie3d.php");

define("_VIEWPATH_","views/graph/");

if (!isset($_GET['act'])) $_GET['act'] = ''; 

switch ($_GET['act']) {
	case "murid_ikut_agensi_pie" :
		include _VIEWPATH_."$act.php";
		break;

	case "murid_ikut_lokasi" :
		include _VIEWPATH_."$act.php";
		break;

	case "murid_ikut_kaum" :
		include _VIEWPATH_."$act.php";
		break;

	case "murid_ikut_parlimen" :
		include _VIEWPATH_."$act.php";
		break;

	case "dash_sek_ikut_negeri" :
		include _VIEWPATH_."$act.php";
		break;

	case "dash_sek_ikut_lokasi_many_pie" :
		include _VIEWPATH_."$act.php";
		break;

	case "sek_ikut_lokasi_many_pie" :
		include _VIEWPATH_."$act.php";
		break;

	case "sek_ikut_lokasi" :
		include _VIEWPATH_."$act.php";
		break;
	case "sek_ikut_negeri_pie" :
		include _VIEWPATH_."$act.php";
		break;
	case "sek_ikut_negeri" :
		include _VIEWPATH_."$act.php";
		break;
	case "sek_ikut_negeri_dan_jenis" :
		include _VIEWPATH_."$act.php";
		break;

	case "stat_outing_daily" :
		include _VIEWPATH_."$act.php";
		break;

	case "stat_outing_monthly" :
		include _VIEWPATH_."$act.php";
		break;

	case "stat_outing_yearly" :
		include _VIEWPATH_."$act.php";
		break;

	case "visitor_today" :
		include _VIEWPATH_."$act.php";
		break;

	case "visitor_daily_report" :
		include _VIEWPATH_."$act.php";
		break;

	case "visitor_monthly_report" :
		include _VIEWPATH_."$act.php";
		break;

	case "visitor_yearly_report" :
		include _VIEWPATH_."$act.php";
		break;

	case "pelawat_laporan_pilihan" :
		include _VIEWPATH_."$act.php";
		break;


	case "senarai_pelawat_today" :
		include _VIEWPATH_."$act.php";
		break;
	case "senarai_pelawat_today_lelaki" :
		include _VIEWPATH_."$act.php";
		break;
	case "senarai_pelawat_today_perempuan" :
		include _VIEWPATH_."$act.php";
		break;

	default :
		echo "default";		
}
?>